/**
 * @author Liu Cong
 */

(function(){

/**
 * Message Headers provide context for the processing of the
 * the AMF Packet and all subsequent Messages.
 * 
 * Multiple Message Headers may be included within an AMF Packet.
 *
 */
FireAMF.MessageHeader = function(name, mustRead, data, length){
    this.name     = name;
    this.mustRead = !!mustRead;
    this.data     = data;
    if (undefined !== length) {
        this.length = parseInt(length);
    }
};

})();
